package com.chinadci.zj;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class HomePage extends Activity {

	private ImageView imageView1 = null;
	private ImageView imageView2 = null;
	// private ImageView imageView3 = null;
	// private ImageView imageView4 = null;
	Intent mapIntent = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.home);

		this.imageView1 = (ImageView) findViewById(R.id.imageView1);
		this.imageView1.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				if (mapIntent == null) {
					mapIntent = new Intent();
					mapIntent
							.setClass(HomePage.this, ApplicationActivity.class);
				}
				startActivity(mapIntent);
				overridePendingTransition(R.anim.in_from_right, R.anim.out_to_left);
			}
		});
		this.imageView2 = (ImageView) findViewById(R.id.imageView2);
		this.imageView2.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(HomePage.this, RCXCFormActivity.class);
				startActivity(intent);
				overridePendingTransition(R.anim.in_from_right, R.anim.out_to_left);
			}
		});
		// this.imageView3 = (ImageView) findViewById(R.id.imageView3);
		// this.imageView3.setOnClickListener(new OnClickListener() {
		// public void onClick(View v) {
		// Intent intent = new Intent();
		// intent.setClass(HomePage.this, RecordActivity.class);
		// startActivity(intent);
		// }
		// });
		// this.imageView4 = (ImageView) findViewById(R.id.imageView4);
		// this.imageView4.setOnClickListener(new OnClickListener() {
		// public void onClick(View v) {
		// Intent intent = new Intent();
		// intent.setClass(HomePage.this, MsgActivity.class);
		// startActivity(intent);
		// }
		// });

	}

}
